<template>
  <div class="type-item">
    <img :src="info.url" />
    <div class="good-info">
      <el-text class="mx-1" size="large">{{ info.name }}</el-text>
    </div>
  </div>
</template>

<script setup>
const props = defineProps(['info'])

const info = props.info
</script>

<style scoped>
.type-item {
  display: inline-block;
  width: 150px;
  height: 150px;
  margin: 20px;
  cursor: pointer;
  transition: 0.5s all;
}

img {
  width: 150px;
  height: 150px;
}

.type-item:hover {
  box-shadow: -1px 1px 10px -5px rgba(0, 0, 0, 0.75);
}

.good-info {
  display: flex;
  justify-content: center;
  color: rgb(255, 112, 15);
}

.el-text {
  font-weight: 600;
}
</style>
